import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/view/home'
import Login from '@/view/login'
import Member from '@/view/member'
import Problem from '@/view/problem'
import Index from '@/view/index'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home,
      children:[
        {
          path: '/',
          name: 'index',
          component: Index
        },
        {
          path: '/member',
          name: 'member',
          component: Member
        },
        {
          path: '/problem',
          name: 'problem',
          component: Problem
        }
      ]
    },
    {
      path: '/login',
      name: 'login',
      component: Login
    }
  ]
})
